const fs = require('fs');
function readFile(path) {
    return new Promise((resolve, reject) => {
        fs.readFile(path, (err, data) => {
            if (err) reject(err);
            resolve(data.toString());
        })
    })
}
async function main() {
    let jingtingshan = await readFile('./sucai/3-1-2promise.md');
    // console.log(jingtingshan);
    let baidicheng = await readFile('./sucai/3-1-5promise.md');
    // console.log(baidicheng);
    let guanquelou = await readFile('./sucai/7-1-4await.md');
    // console.log(guanquelou);
    return new Promise((resolve, reject) => {
        // console.log(`${jingtingshan}${baidicheng}${guanquelou}}`);
        resolve(`${jingtingshan}${baidicheng}${guanquelou}}`)
    })
}
main().then((value) => {
    console.log(value);
})
// let result = main();
// console.log(result);
